# @Author：silence
# @Email：792245022@qq.com
# @Date：2025/1/8 2:05

sum_score = 0.0
total_score = 0.0
pass_num = 0

for i in range(0, 3):
    sum_score = 0
    for j in range(0, 5):
        score = float(input(f"请输入第 {i + 1} 班第 {j + 1} 个学生的成绩："))
        if score >= 60.0:
            pass_num += 1
        sum_score += score
    total_score += sum_score
    print(f"第 {i + 1} 个班级平均成绩为：{sum_score / 5}")
print(f"所有班级的平均分为：{total_score / 15}")
print(f"所有班级的及格人数为：{pass_num}")
